<!DOCTYPE html>

<html>

	<head>
		<meta charset="utf-8">
		<title>微信后台</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">

		<link rel="stylesheet" href="__admin__/plugins/layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="__admin__/css/global.css" media="all">
		<link rel="stylesheet" href="__admin__/plugins/font-awesome/css/font-awesome.min.css">
		<style>
			.layui-nav-child dd {
				padding-left: 20px;
			}
		</style>
	</head>

	<body>
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header header header-demo">
				<div class="layui-admin">
					<div class="admin-login-box">
						<a class="logo" style="left: 0;" href="">
							<span style="font-size: 22px;">微信后台</span>
						</a>
						<div class="admin-side-toggle">
							<i class="fa fa-bars" aria-hidden="true"></i>
						</div>
					</div>
					<ul class="layui-nav admin-header-item">
						<!-- <li class="layui-nav-item">
							<a href="javascript:;">清除缓存</a>
						</li>
						<li class="layui-nav-item">
							<a href="javascript:;">浏览网站</a>
						</li> -->
						<li class="layui-nav-item">
							<a href="javascript:;" class="admin-header-user">
								{{--<img src="" />--}}
								<span>
									admin
									<!--{{session('admin.account')}}-->
								</span>
							</a>
							<dl class="layui-nav-child">
								<!-- <dd>
									<a href="javascript:;"><i class="fa fa-user-circle" aria-hidden="true"></i> 个人信息</a>
								</dd>
								<dd>
									<a href="javascript:;"><i class="fa fa-gear" aria-hidden="true"></i> 设置</a>
								</dd> -->
								<dd>
									<a href="__admin__/logout"><i class="fa fa-sign-out" aria-hidden="true"></i> 注销</a>
								</dd>
							</dl>
						</li>
					</ul>
					<ul class="layui-nav admin-header-item-mobile">
						<li class="layui-nav-item">
							<a href=""><i class="fa fa-sign-out" aria-hidden="true"></i> 注销</a>
						</li>
					</ul>
				</div>
			</div>
			<div class="layui-side layui-bg-black" id="admin-side">
				<div class="layui-side-scroll" id="admin-navbar-side" lay-filter="side"></div>
			</div>
			<div class="layui-body" style="bottom: 0;" id="admin-body">
				<div class="layui-tab admin-nav-card layui-tab-brief" lay-filter="admin-tab">
					<ul class="layui-tab-title">
						<li class="layui-this">
							<i class="fa fa-home" aria-hidden="true"></i>
							<cite>首页</cite>
						</li>
					</ul>
					<div class="layui-tab-content" style="min-height: 150px; padding: 5px 0 0 0;">
						<div class="layui-tab-item layui-show">
							<iframe src=""></iframe>
						</div>
					</div>
				</div>
			</div>
			<div class="layui-footer footer footer-demo" id="admin-footer">
				<div class="layui-admin">
					<p>2016 &copy;
						<a href="http://www.fengmangkeji.cn">www.fengmangkeji.cn</a> LGPL license
					</p>
				</div>
			</div>
			<div class="site-tree-mobile layui-hide">
				<i class="layui-icon">&#xe602;</i>
			</div>
			<div class="site-mobile-shade"></div>
			<script type="text/javascript" src="__admin__/plugins/jquery/jquery.min.js"></script>
			<script type="text/javascript" src="__admin__/plugins/layui/layui.js"></script>
			<script type="text/javascript" src="__admin__/datas/nav.js" ></script>
			<script src="__admin__/js/index.js"></script>


			<script>
				window.onbeforeunload = function(evt) {
					var e = window.event || evt;   
		            var n = e.screenX - window.screenLeft;   
		            var b = n > document.documentElement.scrollWidth-20;   
		            if(b && e.clientY < 0 || e.altKey){   
		                
		            }else{
		                sessionStorage.setItem("tab_index", $('.admin-nav-card .layui-this').index());
		            }
		        }  
				window.onload = function(){
					window.history.replaceState(null,null,'/admin/index/index');
					setTimeout(function(){
						var session = sessionStorage.getItem('tab');
						if(session){
							var sessionArr = session.split(','),
								sessionLen = sessionArr.length;
							var $cite = $('#admin-navbar-side').find('cite'),
								citeLen = $cite.length;
							for(var j=0; j<sessionLen; j++){
								for(var i=0; i<citeLen; i++){
									var text = $cite.eq(i).text();
									if(sessionArr[j] == text){
										$cite.eq(i).trigger('click');
										continue;
									}
								}
							}
							var tab_index = sessionStorage.getItem('tab_index');
							$('.admin-nav-card li:eq('+tab_index+')').trigger('click');
						}
					},500)
						
				}
			</script>
		</div>
	</body>

</html>